<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Bomberman:  Fichier source de /home/ph3w/Bureau/lif7-bomberman/ClientServer/Client/class_client.inl</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.1 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="header">
  <div class="headertitle">
<h1>/home/ph3w/Bureau/lif7-bomberman/ClientServer/Client/class_client.inl</h1>  </div>
</div>
<div class="contents">
<a href="class__client_8inl.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00002"></a>00002 <span class="comment">* @fn void client::send_message( const char* buffer, unsigned int bufferSize )</span>
<a name="l00003"></a>00003 <span class="comment">* @brief Envoie un message (buffer) au serveur</span>
<a name="l00004"></a>00004 <span class="comment">* @param[in,out] buffer La variable sont stockées les données à envoyer</span>
<a name="l00005"></a>00005 <span class="comment">* @param[in] bufferSize Taille du buffer</span>
<a name="l00006"></a>00006 <span class="comment">* @note alias de baseClientServer::send_message( SOCKET sock, const char* buffer, unsigned int bufferSize )</span>
<a name="l00007"></a>00007 <span class="comment">*/</span>
<a name="l00008"></a><a class="code" href="classclient.html#ad37308b8128932bea9ddb5afab3ba441">00008</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classclient.html#ad37308b8128932bea9ddb5afab3ba441" title="Envoie un message (buffer) au serveur.">client::send_message</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bufferSize )
<a name="l00009"></a>00009 {
<a name="l00010"></a>00010     <a class="code" href="classclient.html#ad37308b8128932bea9ddb5afab3ba441" title="Envoie un message (buffer) au serveur.">send_message</a>( <a class="code" href="classbase_client_server.html#adcdb18e66a3751fd8edbd5d1f65e8bd3" title="Le socket principal. ( c&amp;#39;est clui là quit sert pour l&amp;#39;écoute sur le port c_port )...">c_listenSocket</a>, buffer, bufferSize );
<a name="l00011"></a>00011 }
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00015"></a>00015 <span class="comment">* @fn const IN_ADDR* client::serverAdress() const</span>
<a name="l00016"></a>00016 <span class="comment">* @brief Renvoie le socket utilisé pour la connection avec le serveur</span>
<a name="l00017"></a>00017 <span class="comment">*/</span>
<a name="l00018"></a><a class="code" href="classclient.html#a7d0ce13ff32457fcff4e85a0348134b1">00018</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="class___base_client_server_8h.html#a328d951616d1a7f289fef8e6b23a926b">IN_ADDR</a>* <a class="code" href="classclient.html#a7d0ce13ff32457fcff4e85a0348134b1" title="Renvoie le socket utilisé pour la connection avec le serveur.">client::serverAdress</a>()<span class="keyword"> const</span>
<a name="l00019"></a>00019 <span class="keyword"></span>{
<a name="l00020"></a>00020     <span class="keywordflow">return</span> &amp;<a class="code" href="classclient.html#adb571683580a7a0b2dbd6183e52d4dff" title="L&amp;#39;adresse du serveur.">c_serverAdress</a>;
<a name="l00021"></a>00021 }
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Fri Jan 21 2011 01:21:27 pour Bomberman par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
